//
//  IRMenuView.h
//

#import <Cocoa/Cocoa.h>


@class IRSelectionView;


@interface IRMenuItem : NSObject
{
	NSString	*name;
	bool		hasChildren;
	NSObject	*object;
}

- (id) initWithName:(NSString*) nm  hasChildren:(bool)hasChildren  obj:(NSObject*)obj;

- (NSString*) name;
- (bool) hasChildren;
- (NSObject*) object;

@end


@interface IRMenuView : NSView
{
	int				maxVisibleItems;
	int				middleSlot;

	NSArray			*menuItems;
	int				selectedIndex;
}

- (void) setItems:(NSArray*)list;

- (int) selectedIndex;
- (IRMenuItem*) selectedItem;
- (int) middleSlot;
- (void) selectNext;
- (void) selectPrevious;
- (void) setSelectedIndex:(int) newIndex;
- (void) setSelectedItem:(NSString*) item;
@end
